package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

/**
 * Created by 13925 on 2018/10/28.
 */

/**
 * 后台用户服务层
 */
public interface IUserService {
    /**
     * 进行用户注册和登录查询
     * 判断邮箱是否存在
     * 如果传入密码则为登录查询(验证)操作
     *
     * @param email
     * @param password
     * @return
     */
    User getUserByEmailAndPassword(String email, String password);

    void save(User user);

    PageInfo query(QueryObject qo);

    /**
     * @param user
     */
    void update(User user);
}
